package com.matt.repository;

import com.matt.domain.rel.RelAreaLiveRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface RelAreaLiveRecordRepository extends JpaRepository<RelAreaLiveRecord, String> {

    RelAreaLiveRecord findByAreaIdAndCameraEnabled(String areaId,Boolean cameraEnabled);

    RelAreaLiveRecord findByAreaId(String areaId);
}
